package com.cloud.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;


@Aspect
@Component
public class SelectLocalAspect {

    @Around(value = "@annotation(com.cloud.aspect.SelectLocalAnnotation)")
    public Object around(ProceedingJoinPoint joinPoint){
        Object proceed = null;
        try {
            proceed = joinPoint.proceed();
        } catch (Throwable e) {
            e.printStackTrace();
        }

        //proceed就是方法的返回值
        return proceed;
    }
}
